package org.bing.engine.common.scheduler;

public class SingleTaskContainer extends SimpleTaskContainer {
    private AbstractTask task;

    public void setTask(AbstractTask task) {
        this.task = task;
    }

    public void init() {
        if (task != null) {
            try {
                schedule(task);
            } catch (Exception e) {
                logger.error("Fail to schedule " + task);
            }
        }
    }
}
